#ifndef QBCEFQUERYHANDLER_H
#define QBCEFQUERYHANDLER_H

#include <QCefQuery.h>
#include "widgets/cefview/CefViewWidget.h"
#include "TdsReqHandler.h"


class QbCefViewDelegate : public CefViewDelegate, public TdsReqHandler
{
public:
    QbCefViewDelegate();
protected: // inherit from CefViewDelegate
    virtual void onCefQuery(int browserId, qint64 frameId, const QCefQuery &query) override;
    virtual void onNewBrowser(const QString& url) override;
protected: // inherit from TdsReqHandler
    virtual void onSendDataToWeb(int browserId, qint64 frameId, const QString& res, const QString& cb) override;
};

#endif // QBCEFQUERYHANDLER_H
